package com.study.chain.general;

public class ConcreteHandlerA extends Handler {

    @Override
    protected void handlerRequest(String handlerStr) {
        if("A".equals(handlerStr)){
            System.out.println("我来处理A请求");
            return;
        }
        System.out.println("不是A请求，放行");
        if(this.nextHandler!=null){
            this.nextHandler.handlerRequest(handlerStr);
        }
    }
}
